#include "delta.hh"

#include <tools/utility.hh>

Delta::Delta (int id, const Vector3d& rotate, const Vector3f& pos):
  id_ (id),
  rotate_ (rotate),
  pos_ (pos)
{
}

std::string
Delta::tonet () const
{
  std::string tosend;

  char tmp[4];
  Utility::to_oct (id_, tmp);

  tosend += std::string (tmp, 4);

  tosend += rotate_.tonet ();
  tosend += pos_.tonet ();

  return tosend;
}
